package com.zhangsun.springShiro.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangsun.springShiro.system.entity.ResourceEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 资源 Mapper 接口
 * </p>
 *
 * @author zhangsun
 * @since 2019-07-23
 */
public interface ResourceMapper extends BaseMapper<ResourceEntity> {

    List<ResourceEntity> findResourcesByRoles(@Param("roleIds") Set<String> roleIds);

}
